x11: Handle motif client message filter just like xdnd filters
authorBenjamin Otte <otte@redhat.com>
Tue, 1 Feb 2011 03:35:49 +0000 (04:35 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 1 Feb 2011 05:33:01 +0000 (06:33 +0100)
gdk/x11/gdkdnd-x11.c

index 4b8ee69aefeff6a24fd84192d22c8c5b38de4f87..eab817f826465d1ce7fb888ceae8b55d92d6a11b 100644 (file)
@@ -146,12 +146,14 @@ static const struct {
   const char *atom_name;
   GdkFilterFunc func;
 } xdnd_filters[] = {
-  { "XdndEnter",    xdnd_enter_filter },
-  { "XdndLeave",    xdnd_leave_filter },
-  { "XdndPosition", xdnd_position_filter },
-  { "XdndStatus",   xdnd_status_filter },
-  { "XdndFinished", xdnd_finished_filter },
-  { "XdndDrop",     xdnd_drop_filter },
+  { "_MOTIF_DRAG_AND_DROP_MESSAGE", motif_dnd_filter },
+
+  { "XdndEnter",                    xdnd_enter_filter },
+  { "XdndLeave",                    xdnd_leave_filter },
+  { "XdndPosition",                 xdnd_position_filter },
+  { "XdndStatus",                   xdnd_status_filter },
+  { "XdndFinished",                 xdnd_finished_filter },
+  { "XdndDrop",                     xdnd_drop_filter },
 };
 
 
@@ -3132,11 +3134,6 @@ _gdk_x11_display_init_dnd (GdkDisplay *display)
   int i;
   init_byte_order ();
 
-  gdk_display_add_client_message_filter (
-        display,
-        gdk_atom_intern_static_string ("_MOTIF_DRAG_AND_DROP_MESSAGE"),
-        motif_dnd_filter, NULL);
-
   for (i = 0; i < G_N_ELEMENTS (xdnd_filters); i++)
     {
       gdk_display_add_client_message_filter (